import javax.microedition.io.Connector;
import javax.microedition.lcdui.*;

public class Login extends Form implements CommandListener {

    private TextField acc = new TextField("Tài khoản: ", "", 20, TextField.ANY);
    private TextField pas = new TextField("Mật khẩu: ", "", 20, TextField.PASSWORD);
    private Command login = new Command("Login", Command.ITEM, 0);
    private Command back = new Command("Back", Command.BACK, 0);

    public Login() {
        super("Đăng nhập");
        this.append(acc);
        this.append(pas);
        this.addCommand(login);
        this.addCommand(back);
        setCommandListener(this);
    }

    public void commandAction(Command c, Displayable d) {

        if (c == login) {
                
        } else if (c == back) {
            AppManager.back();
        }

    }
}
